export default {
    state:{
        number:0,
        message:[
            {name:"香蕉",dj:3.2,num:0},
            {name:"苹果",dj:2.2,num:0},
            {name:"鸭梨",dj:4.2,num:0},
            {name:"葡萄",dj:3.7,num:0}
        ],
    },
    setStateMessage(){
        for (let index = 0; index < this.state.message.length; index++) {
            this.state.message[index].num=0;
        }
    },
    settonull(){
        this.state.number=0;
        console.log(this.state.number);
    }
}
